hooked up model in routes, added session stuff, added helper methods