fixed some issues with not sending the distance to the client
fixed links to not use html5 mode any more... buys us refreshing on the browser