Add user references code and widgets