add room interface
fix bug in teacherIndex