legend added for widget