changed painter ui to adopt publish subscriber thingy