document for widget