Ensured editor script only executed on right pages