added plugin functionality for mainmenu