renamed mainy1 to mainCockpit