make the state of the orders as Delete when the related lesson have been deleted,and fix the bug that can't show calendar on every teacher's detail page