[feat] basic u/d movement impl
[feat] update window movement
detect window index
add checkwindow