implementation of text buffer / some scrollbar feedback