included active record and pagination, date formatting