add dom query function, had test