Structure panel highlighting bugs

The structure panel keeps some of the previously selected item highlighted which makes it confusing for the user.