Add scroll event to sidebar