re-added variable to check if any global animation was clicked