updated comment functionality