added some commandex and modified window_move