semi working edit button