add flash messages, update app layout