removed hardcoded url
added parameter check to link options