check the session and load the correct layout in Module.php instead of Controller