Remove console.log call + added visibility checking in nex/previous page links