wip: save on leave page