fix bug from not passing proper instance to deny/approve. cleaned up code a bit