Builds and inserts structure from URL