Move code to add log page on article view