update detail view js