update codes for supporting FRAME

supports for frameset/frame