cleaning up how message div printed