Refactor dashboard index view