top level view
sample code