refactored contentscript and removed browser action