updated main window button flags