Before script has been separated on two groups: for learning type and course category and for school and sorting. It means when school is choosen, learning type and course category resets on update. TODO: need to add pagination