Relationships ajax work to detect whether or not ajax is necessary