prepare root url, and begin to setup gui