Main menu problems

So I watched this youtube tutorial on how to do a main menu. everything seems to work nice for a bit. when I play the game the mouse cursor is supposed to be shown but instead, it is only shown when i click on the screen. not just anywhere on the screen, but i have to click on the main menu parts like play game or quit game boxes. if i click on the game (outside the main menu) the mouse gets locked to the game as it is used to move the character. last thing, when i click on quit game the game quits, which is fine, but when i click on play game it is supposed to play the game and the main menu dissapear. the main menu does not dissapear even thought i did everything that they said in the youtube tutorial. i will send the link to some screenshots i took which might help you understand.

l

in your main menu constructor, get owning controller, and set input mode to UI only, and assign self to focus widget. in your button click play event, make sure to ‘remove from parent’ the main menu whenever it finishes what you need it to do.