Added method to hideMenu