change button bar into tab bar