Added some windoe management functions and commands