added resolve for restricted routes