Make sure commands go through the MAIN section and get the object identifier of the viewer in the frame.
INIT:
  control always;
  _frame_._getWidget(viewid);
  return;