added code to retrieve users and tasks from rest api