added item-click and on-blur events and update the html template.