fix viewpiot bug's  and add tow window