get json funciton works added a delete button as well