Botched attempt at putting transform calculation logic on view. Scaling back