fixes for scrolling, fix for double-refresh