Fixed edit buttons not working correctly

Edit buttons wouldn't open the editor.