Changed on click assignment to work with dynamically added footer