another go, change the order and use window.top