InitializeComponent must come first otherwise control is not drawn in the tab menu