sets proper flash message on save