created functionality for highlghting words