update to get window working