Tab API
re-order to match api
Fixed internal usage of API. Code cleanup.
id or name for tab functions.
Fix display issue