cleaned up and used cl_ajax