use factory to set canvas and message bar