dev add a bunch of js to make add and deleting records more dynamic