breaks removed
error in flashMessage fixed