fixed function calls on tabs