pass view instance to