simplify Util#resourcePath
moved handleDurationTimeIndexChange to surpress warnings