Fix add and edit bugs, use prop filter and purge globals

When the accordion went in it stopped to model variables for add and
edit animation names working. Had to change the variables to objects