update show and edit functionality
fix show and edit