refactored views
update index view