added success page and set date format