Create modification in monitor module

there was some proble in original monitor problem for option 2 at the
time of release of resource,that solution was not work for resource no 3
and i hope it will work for all condition