fixed the editingbutton