moved loading of code editor to viewDidLoad since viewWillAppear shows every time the keyboard dimisses causing bad things