some refactorings
frame will set self variable when it gets focused
changing syntax style that inspector determines