It's hard not to call an ex or to keep to a diet you really want to keep. Distract your mind. You can work through the craving and get to a place where you're not thinking about that much anymore.
What are your priorities for the day? Knowing when to do certain tasks and how much time to allot toward them may help you avoid feeling overwhelmed. When you have a guide, like a schedule ...