updated visits model/controller