Fixed date format and made onClick with tags