upgrade angular to 1.2.16
set buttons/reset linkages when a new or different doc is being aligned