simplify menu toggle controller