update now working. need to add delete option