added window placement mode changing