added chat and saving to pdf for flow chart