update NPP_HandleEvent implementation status
minor code rearrangements