enable|disable script on web added + some refactoring