Fix ajax refresh to only refresh the needed components