Fineshed del_window and move_window