refactor

separate internal function for displaying single post pages
fix old typo

in function description