Common functionality used by ubiapps components