add edit view and add click function for editing