add duration selection for history