added sessions controller to handle callbacks