Fixed the methods for viewing submitted homeworks for TeacherService