added loop to insert '-' before tasks in index view, also fiddling with controller to output in correct order