remote templates and place in partials, update css, and attributes