moved the sessions view stuff into a partial.