trying to load ui elements in code