update source code for change view when user click to chart item