fix session variable name, controller logic and title