I came across this paragraph in this post:
I choose the joy. When something is going badly and I’m dwelling on it, I think instead of something for which I am grateful. I swear to you, it’s as simple as that. You just have to decide today, and again tomorrow. And before you know it, you’ll have an attitude of joy more than any other attitude you have at your disposal.
Here is a button: