refactoring and add pager for selectDCase