add window buffer functions.