added pause dialog