updated to look for tabs with box-title class and when in input fields