now successfully logs to console when we visit a new page