added logic to toggle credits on click