Fixed #6. Update the column selects when the template select is changed.
Fixed conflicts.