fix on ui: chart and loader hide and show