add context listener and opensession in view