Adding teacher pages and functionality