Work in progress on Dialog UI class. Also, added api into the View BaseClass to add attributes to the  element reference. Small fixes applied.