added legends to the bottom of the erm view