Ordered the functions incorrectly in my last commit, creating a bug where you can't close a dataset listing. Fixed in this commit.