add window pointer in Plugin