fixed dialogs, added palette buttons