Add widgets and their functionality