refresh details on changing tab