select category in purchase working