adding promise when getting all contacts