added contdetwindow to save log from wm-2