Added support for different layouts (when logged and not logged in)