cleaned up nested form with asset pipeline and made partial for js sorting of images