changing title when selecting categories