Fixed an error in the main_layout of teacher