show flash messages in render method in view