Handling teacher select