Joined html and scripts, added delegator to pattern list to call the show/hide callback