change window type