add open window support