made widget entity optional