Add a hook to use a different app index