Added nav links and refactored flash messages.