Move widget registration to own function/file - avoid register_widget in class files