replaced hard coded host url with string derived from current tab