fixed the hiding and showing of comments