fix button behavior when switching between tabs