converted to module to prevent window littering

just wrapped with module to prevent window littering with the class