dialog now disappears after a certain amount of time