Initialization of record viewer