update widgets , add attributes for html elements