I need help

So I need some help..my ex-boyfriend that I'm on love with want talk to me and my boyfriend and I are doing fine but I can not stop thinking bout my ex and I don't wanna mess up my relationship what do I do?