Bug fixes: update UI upon tab change