attach session of a view on main queue