frmState adaptation

Moved state button to another tab
Commented malfunctioning code (Form1.dTable references)
Minor bugfix