add visarepository to made the controller more clearner