added setTimeout to smooth popups