add a scope 'sorted' to task model
add edit link to tasks