add addElement function to Widget class
change tab structure to conform more closely with standard HTML tags (use ul/li/a for tabs)