got highlighting and selecting working properly