added bar brushing and inactive element opacity