undo js per controller