Fixed code editors by creating a custom class and contect them to their
member functions, multiple code editors can now be opened.