edited chart & added icon function