add MainWidget as listener