separated teacher view from admin view