Added ability to associate and view a statechart with bricks (quick hack)