add functionality for category selecting