refactor view

delete unnecessary/useless line in get_temp_data