changed call back after AJAX done