refactor view select_frequency