edit button is partially functional