add categories handler