Add feature to add todos in to list

@randikagit Do not access `$scope.task` directly. Fetch it as a method parameter.