added timouts to bring window to front