moved data getting into a controller, timestamp conversion into a filter