code for approve and reject nominee but not working