Removing tabs
Refactoring to use jQuery event system