Implemented previous tag highlighting