update the tabpaneal and layout