added legend and coordinate elements