remove dialog box after pressing ok