implementing categories selector