add chart creating and main controller
add chart creating