fixes fading in and out on click