Add a repeatUntil function for sampling checks
Fix content being hidden if the navbar has multiple rows