HUE-1251 [pig] Copy feature doesn't list the new copy of the file until page refresh

Fixed copy of parameters and resources