Add port listening and page listening