messing with frontend
frontend passes vars to controller