optimize style for form legend