updated views, flash messages and root route.