Auto save alert, error alert, and toggle preview