logging for tab switching and borders for tabs