add removing dialog mask on close