add function to enter target date as url param