fixed text selection for android browser and optimized performance