added modal functionality (opening/closing) to textview cards