session in controllers, change in index query