added unknown dates
refactor out controller code