working edit button