 		}
 	securityLabelsContext: ->
 		return {
-		onSelectionChanged: Template.instance().onSelectionChanged
-		isOptionSelected: Template.instance().isOptionSelected
-		isOptionDisabled: Template.instance().isOptionDisabled
-		securityLabels: Template.instance().allowedLabels
+			onSelectionChanged: Template.instance().onSelectionChanged
+			isOptionSelected: Template.instance().isOptionSelected
+			isOptionDisabled: Template.instance().isOptionDisabled
+			securityLabels: Template.instance().allowedLabels
 		}
 	securityLabelsInitialized: ->
 		return Template.instance().securityLabelsInitialized.get()

Template.privateGroupsFlex.events
	'autocompleteselect #pvt-group-members': (event, instance, doc) ->
		instance.selectedUsers.set instance.selectedUsers.get().concat doc.username

		instance.selectedUserNames[doc.username] = doc.name

		event.currentTarget.value = ''
		event.currentTarget.focus()


	# room is set if we're editing an existing room
	if instance.room
		instance.groupName.set(instance.room.name)
		instance.room.usernames?.forEach (username) ->
			# TODO use name field instead of username.  Room only has username
			# so we need to make server call to get full name for a username
			instance.selectedUserNames[username] = username
			instance.selectedUsers.set instance.selectedUsers.get().concat username	
			# other conversation members
			instance.otherMembers = _.without(instance.room.usernames, Meteor.user().username)

	# labels that all members have in common
	instance.allowedLabels = []
	# reactive trigger set to true when labels returned asynchronously from server
