modified sessions controller