adding sessions controler