Added some functionality to the add classes page