Use selectedPath rather than selectedCategory

Because of all the data mutations, it's a pain to keep selectedCategory in sync with the changes, so instead we just use the path