removed hardcoding of URL