converted categories into links. added the onclick function to them