fixing show menu and switch problems