implemented show method and reworked index view