updated call back for non-embed urls