Some improvements

1. Added input property to view object to allow easy accessing data from
the view

2. Added API to allows using custom data in loadTemplate and
loadCommonLayout method