form id bug fix when loading form from db
fixed more bugs