added local jquery
intelligent detaching settings view on rendering
cleanup rendering methods