Refactored generic controller index view