move record viewer dialog to popup