Set context of view