gets input cube from uicontroller