remove window from main page too