index and new functions added to Task controller. No views implemented yet