added the approve button functionality