add update pwd and tab labelling