Added erase button functionality and json package