references refactored for Ajax