hook up cancel confirm on metadata modal