correct overlay when pane has scrolling
minor fixes