set current view into session varible and make related changes

set current view into session varible and make related changes