chained promises to guarantee s3 data and authorData in modal directive