Edit element and send to the parent