Completed menu toggling logic.