Added notebook port scanning code to the views