Added UI method selection. Form splitted into smaller templates for easier maintenance.