added a view index controller