Clearer tab handling in wizard buttons js