the showMenu var is moved to the parent scope