update left panel according to selection