trying to fix open and close menu functions