have to pass in dates properly through the template