convert index view to use front-end mvc