Fixed visibility property problem with main menu