refine scroll2bottom logic