scroll to error or confirm message