fixing the scroll actions for title and background