move tick calculations to widget function (part 2)