Implement window manager for controling browser