clean up controller and index view