added flash messages to views and added null message to render functions
fixed conflict