refactored TbActiveForm and TbForm

fix #506 #520 #600 #617 #629