Use ajax for deletion of categories