updated cms to use init script and togle edit/save buttons