got the basic windowing idea

but need to work on edge cases