# Common Widgets Logic

**URL:** <https://forums.unrealengine.com/t/common-widgets-logic/764054>\
**Category:** Game Development\
**Tags:** unreal-engine, functions, Widget\
**Created:** [February 5, 2023, 12:22pm UTC](https://forums.unrealengine.com/t/common-widgets-logic/764054 "2023-02-05T12:22:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FaulerDamon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/faulerdamon/32/661635_2.png) [@FaulerDamon](https://forums.unrealengine.com/u/FaulerDamon)\
**Post date:** [February 5, 2023, 12:22pm UTC](https://forums.unrealengine.com/t/common-widgets-logic/764054/1 "2023-02-05T12:22:44Z")

</div>

Hi all.  
I have one widget that is used in the main menu and in the game menu.  
These 2 menus are different, but they both have a link to a common widget.

I have this problem: If I make a blueprint script for a common widget, then the logic as a whole will break for the entire menu.  
For example: I have a main menu, and in the menu there is a settings button that leads to the settings page, on the settings page itself there is a “Back” button that should return back to the main menu. I also have a game menu where there is also a settings button, but if I go to the settings and press “back”, then I will be transferred from the game to the main menu.

Please help with advice on how to implement a check for widgets so as not to duplicate widgets

 ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/2/cf22866ef95b73cf91f6cf99a815c53f65c453ae.png)

---

<div class="post-metadata">

**Author:** ![balidonk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/balidonk/32/619334_2.png) [@balidonk](https://forums.unrealengine.com/u/balidonk)\
**Post date:** [February 6, 2023, 3:06pm UTC](https://forums.unrealengine.com/t/common-widgets-logic/764054/2 "2023-02-06T15:06:44Z")

</div>

IF I UNDERSTAND CORRECTLY, YOU CAN USE A WIDGET SWITCHER AND PLACE THE MENUS INSIDE IT AND IN YOUR “SHELL WIDGET” YOU WILL JUST NEED TO CHANGE THE INDEX OF THE CURRENT MENU
