added functions for menus