added extra functionalities for menus