Added close and lock functionality to menubar