enhanced tab functionality and example usage