Adding local scroll functionality