updated index and show, fixed some routing issues