adds flash messages to project