Change toggle tab function