refactor visit-status