Added legend to the forms