More ui-helper funcs added

Need to be here as it's going to be a dependency from practically every
script in s3 and we don't want too much cross-dependencies.

Change-Id: If1009a2fe22841976e9823d5c7841267f42499f2