Main form almost completed