added changing the date from an input field