added logigc to change the state in projects in the manage view