adding pause dialog