added window reposition