fix warnings for -Wextra, finish tab widget