added sessions controller, other changes are related to that