Added AJAX category inserting