fixing resident and administrator routing