Added file to handle scroll logic