refactor repository creation into form object
set url from api