Add viewable capsules function