refactored index view