refactored to more mvc
made datasets sort by date