add dialogs and selectDept