Merge and prepare wpframe