tab padding and other fixes