fixed flushing rewrite on activation
updated template lang file
fixed sanitization; refactoring