re-write tabs shortcode to deal with wpautop issues and clean up code style