added toggle menu and dismiss keyboard when closing/opening