added comment form and functions