Disable/Enable sites

Optimized code 
Error checking