fixed date formatting, added pagination