Adds toggle proportion type functionality.
Adds  as a scope variable.
Implements reverse proportion calculation.