add xrc resource
load frame from xrc resource