Refresh hints after buttons change and prevent multiple selections in the project tree