added uri parsing, some smal changes to detailview.html