updating model sout function to remove some bugs and adding relative url to api