remove global $CONFIG

re-write the form action