add class bar_chart and main_window