added some window operations