moved flash messages