Handle windows states for palette