Added chart library (maybe will be replaced with other library in future). Fixed hierarchical app states/views.