Added support to create tree view
Added support for events