checkbox passes name of checked material through in params