Add menu code back after manually creating widgets.