refactor view

delete unnecessary code from get_precip_data