generic toggle function.
remove html binding
save and edit buttons