add context data to view data