add the edit function at the show page