building logic for showing comments on individual pages