implemented flashMessage for settings