fix the usage for dialog and buttons being mixed up