styled tabs with exit buttons, save query on exit