demo view, event binding and teamplate variable