Use factory function to instanciate wx viewers