better view and index page