navbar and flash messages rendered