Added toggle functionality for menubar items