change addObject(...) to pushObject(...)
add listener actions for clear and clearAll buttons