fix window resizee event conflict & add module export