Moves blocks to layout file. Re-implements javascript
cache geocoding results