Fixes a bug in setting options for weights
Adds automatic showing/hiding of edit mode