flash messages, redirecting, improvements