added jquery and add and delete functions