clean up some code. properly rendering partials.