added functionality to change years in the register