Delete table and item functionality working