moved admin functionality out of teacher views and into admin index