Making views work, and sessions