update

changed selectCategory function