Being pleased with the decree of Allah Ta'ala

Q: I write to you in regards to my mother who has been diagnosed with stomach cancer. Doctors have said she’ll receive treatment (chemotherapy) and thereafter surgery because it is treatable.

Myself and my siblings have been very upset and anxious since knowing the diagnosis. We are supportive of each other.

I would just like to know what can be done to ease this difficult time for us, and my mother as treatment can be heavy both physically and mentally in such cases I am completely overcome by anxiety.

Issuing talaaq without the intention of divorcing one's wife

Q: I have a serious matter about a Talaq related question.

I am married and have kids.

I did a second nikah last year with a woman who has 4 kids. She has been manipulating and not been honest with me for last 1 year and continuously lies about so many things and on the top of that she has her EX husband living in the same house with her as she keeps saying he lives in a separate room.

I had enough of her lies so I have separated from her and my first wife asked me to divorce her so I have wrote an emal and told her that I'm divorcing her but it was not my intention and my wife pushed the email sent button.

Then my daughter told me to send her divorce otherwise they will not live with me so I wrote an email and send to the wrong email address because I have no intention to divorce her but my daughter had me corrected the email and send her again.

Couple of days later I called her and I told her I have been forced to give you divorce but this is not my intention and I also told her until I come and give.  I did go back to her and have relationship back with her again.

My wife find out that email divorce is not valid so she has forced me again to call her on the phone and divorce her so I did call her and divorce her 3 times by saying Talaq to her. Later I went back to her because and I told her that until I personally give you divorce I'm not divorcing her.

Now my question is, is my marriage still valid or its divorced. I am very confused. 

Fast food shop adding an extra item into one's meal

Q: I was at this fastfood shop last week and I bought a 3 chicken wings meal. I came home and saw that I was given 4. Normally I don’t worry about this since usually I assume this occurs if one of the wing pieces is small so they give another to compensate, however, because I’m dealing with religious OCD and doubts, I’m worried. I called them today and they confirmed that sometimes they do this for the reason I mentioned above. Can I assume that this is what occurred in my case instead of thinking that they made a mistake?

Developing an app

Q: I am a software developer and two weeks ago my friend asked that he has signed a deal with his client for an android app that we need to deliver within 30 days. My friend and his client both are very trusted although the client is a non-Muslim. So what happened is neither he saw the project details nor me and after two week now when I started working on the project I realized that it was a betting app. Me and my friend both are very stressed that should we take the money from this app or not? Since he has transfered the money into our bank account, what should we do?