Added post and comment view logic.