added most of the form, and fixed up the initial views

Signed-off-by: David Lee <David.Lee@Agsgeo.eu>