event listener on category selector working