added auto aprove logic based on approval configuration