refactored direct manipulation of constraints to showMenu/hideMenu functions