Removing some outdated code.
Removed outdated code.
Setting button states appropriately.