fix gain update
change table header size
fix some ui glitches