Working cqb when tables and popups are used sequentially