Implement base url into widgets

I also removed a useless line.

Usage of base url will be shown soon in the demo's pull request.