add scroll handler for mobile devices