fixed front page loading issue for logged in and not logged in users