Modal with device query working