add base url variable and changed some files to test it online.