refactor index view