Fix configure tabs function to work a bit more formally