open session in view