added date save functionality