created page resource and updated index and show views