adding edit, delete, update, show functionality.Show functionality not working perfectly