added window movement handler