fixed checking div content instead of text