code changes for deactivate status of listings