add detail dialog