add main flow chart