finish comment functionality