scrolltop and other bug fixes