Added the minifiedMenu check and renamed the hide to hideMenu