cleaning up ajax_vms update code