Prototype for window managing