# How to use two different pages for different modules in jira custom UI app?

**URL:** <https://community.developer.atlassian.com/t/how-to-use-two-different-pages-for-different-modules-in-jira-custom-ui-app/49453>\
**Category:** Jira Cloud\
**Tags:** connect-descriptor, adminpages, custom-ui, jira-cloud, forge\
**Created:** [July 1, 2021, 12:43pm UTC](https://community.developer.atlassian.com/t/how-to-use-two-different-pages-for-different-modules-in-jira-custom-ui-app/49453 "2021-07-01T12:43:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![SuryaA](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@SuryaA](https://community.developer.atlassian.com/u/SuryaA)\
**Post date:** [July 2, 2021, 12:42pm UTC](https://community.developer.atlassian.com/t/how-to-use-two-different-pages-for-different-modules-in-jira-custom-ui-app/49453/3 "2021-07-02T12:42:16Z")

</div>

hai @linklefebvre Thanks for your reply. I used the method mentioned in the below link to complete my requirements.

> [@How to build several Custom UI components with one react app in static folder](https://community.developer.atlassian.com/t/how-to-build-several-custom-ui-components-with-one-react-app-in-static-folder/44569/8):
>
> Today, I shared my similar idea [here](https://community.developer.atlassian.com/t/can-we-use-the-same-resource-for-multi-forge-modules/46705)

But Now i am facing some other problem. I invoke a method from app.js and wrote resolver function for that function in src/index.js. I need to render components based on the return value from resolver function.  
But resolver function took too much of time(5 to 6 sec) to return the value. In between that time all the code inside app.js is executed. So based on the return value from the resolver function, i can’t render the pages correctly. is there any way to do it efficiently?

---

_[View the full topic](https://community.developer.atlassian.com/t/how-to-use-two-different-pages-for-different-modules-in-jira-custom-ui-app/49453)._
