finished integration with widget