Uses drupals ajax commands instead of own implementation.