made main page and entries sortable by clicking on the thing