adds edits to button