add new record dialog and its handler