add base url varable and changes to few files adding it.