fix view context on controller switch for modal