Form names, tab indexes, etc

Fixes #164