created an index and a show view and associated controller methods