modify form layout with options. begin updating client js for encapsulation