Removed a nasty memleak and circular reference.
Fixed unnecessary signals on tab change