use a better way of adding categories to posts