Move comment functions to comment.php