adding function to approve or reject a package with reason