Fix submission of data and add directory checkbox data; further namespacing in ExpandableInputs class