Added opacity management on focus change