Fixed issues, refactoring

Fixed left number editor
Fixed exception "No OpenGL context found..."