added functionality for approve/disapprove in api