corrections when user change tab on selection