added message session var in model and set function