moved xref get and display to their own file. everything works in chrome. not working in ie8.