added functionality for menubar items