Added save functionality to toolbar and menubar