Dialog fixup: Careless swap of collapse and expand callbacks

Accidentally swapped the collapse and expand callbacks for dialogs. Fix them up so people can use them properly.