fixed issue with selected value

also added sorting on the form page. Removed sorting on the index page.
TODO: fix sorting on index page