maybe fix flash messages and redirects