add class to best-in-place element when active, and remove when not