added scroll update on resize