use window.parent instead of window.top