added flash messages

added flash messages
fixed some urls