Update directive to support array of values, add directive to main page