added loading section, fixed sorting of results