Add logic for new and also for student/admin.