getting rid of hard coded url