added functionality for flag in appropriate
updates in menu for analytics