adds functioning methods for saved and unsaved