Added support for properly enabling and disabling buttons on the dispenser page. Fixes #146