add edit functionality on click of name