Working new and save buttons in the toolbar