Don't put pressure on children to choose between their parents.
Listen to the children. Ask them for input on any situation.
Be positive about children spending time with both parents.
Communicate in advance with your ex.
Involve the extended family where appropriate.
Look after yourself.