logic for switching home pages depending on logged user role