New and improved version of buffer moving between windows