avoid double ajax call searching object to relate in modal window