More generic echo functions in 'ui' module