record dialog working