Revert "Remove unnecessary path_helper dependency in index controller."

This reverts commit 0a6f18011a2ade239d1804b6f4f1ab1a50ffcfb7.