Breakup and coalescence of bubbles and droplets