added functionality for menu