some text direction issues corrected