Trying to move menu hiding to the css