added flash messages and links to resources