Smoother handling of URL, created empty.html and mdd.html