add flash messages to ratings