datasets page logic