added ajax support for adding categories on post page