added torch model and made timeDevice and torch functional from item UI