added comment controller logic.