Updated current_scroll to automatically call the update function