Move modal primary buttons to the right.

fix #627