changed hardcoded url to dynamic

@kalbermattenm please review and merge if ok.