removed hard coded url from localhost to relative path