Implemted the setting of years in separate dialog