Put observer methods from GraphicalInterface into anonymous classes to fix #73