focus tab and scroll with output