added edit and show functionality
add edit view