implementation of tab panel