added back the elements of measure checkboxes directive.
fixed validation and redirection