edit page added, logic to reveal/hide pencil edit icon