move get comments to open modal function