added diagrams controller
added diagrams view
added gen button method functionality