added function that day and month change when selection is changed