index view refactored