Reverted to using JQuery method for edit and delete functions