While it seems like your emotions are outside of your control, your emotions are actually controllable by adjusting your desires, beliefs, and experiences (including your thoughts and focus of attention).
https://yourmeaninginlife.com/blog/you-can-raise-your-emotional-state-at-will
You decide what meaning the events in your life have to you.
https://yourmeaninginlife.com/blog/you-can-find-meaning-in-whatever-happens-to-you
Asking where you see yourself in five years is a good exercise to determine both where you're going and what you want to be doing today to reach your desired future state.
https://yourmeaninginlife.com/blog/where-do-you-see-yourself-in-five-years