Move codes to observe/notify page progress and location changed from chrome to content