Hide cohort popover tab changes or modal is closed

Fix #264.

Signed-off-by: Don Naegely <naegelyd@gmail.com>