overhaul save alert, fixes #282