adds sortField options, and filter to main.html