GUI baby steps

Problem in state buttons generation, MainView class, MainView()