update index to use relative path for resources