Right now it's hard to trace where the code which creates a given UI element is located. Widgets and subwidgets make this easier ex. main page could look like: main.html
<cosmo:canvas>
</cosmo:canvas\>
canvas.html:
<div>
<cosmo:sideBar/>
<cosmo:timeContainer default="week"/>
<cosmo:detailView/>
<div/>
sidebar.html:
<div>
<cosmo:dropdown source="cosmo.localrepository.loadedCollections" value="cosmo.localrepostitory.currentCollection" />
<cosmo:minical subscriptions="{viewTimeRangeChange : this.handleChangeTimeRange}, itemSelected : this.handleItemSelected}"/>
</div>