date formatting fixed and added to popup