properly calculate display number when it updates