Added functionality to the add classes page