Improved createText convenience function in modal view