fix connect error dialog and action bar items order issues