now opacity is toggled during tab switching