added flash messages;