use 'hiding' rather 'if' showing of the control, which fixed the issue.
Merge pull request #41 from USGS-CIDA/Sort-options-at-page-bottom-do-not-work

use 'hiding' rather 'if' showing of the control, which fixed the issue.