Finishi task activity's function