conditional scroll to bottom