update function recarrega for reloads in genericFunctions