you may need to wait_for_ajax here before proceeding?