 			ChatMessages.deleteMsg(msg)
 
 	'click .start-video': (event) ->
-		webrtc.to = FlowRouter.getParam('_id').replace(Meteor.userId(), '')
-		webrtc.room = FlowRouter.getParam('_id')
+		_id = Template.instance().data._id
+		webrtc.to = _id.replace(Meteor.userId(), '')
+		webrtc.room = _id
 		webrtc.start(true)
 
 	'click .stop-video': (event) ->


	'click button.load-more': (e) ->
		console.log 'room click button.load-more' if window.rocketDebug
		RoomHistoryManager.getMore FlowRouter.getParam('_id')

	'autocompleteselect #user-add-search': (event, template, doc) ->
		console.log 'room autocompleteselect #user-add-search' if window.rocketDebug

		if event.keyCode is 27 # esc
			Session.set('editRoomTitle', false)
		else if event.keyCode is 13 # enter
			renameRoom @_id, $(event.currentTarget).val()

	'blur #room-title-field': (event) ->
		console.log 'room blur #room-title-field' if window.rocketDebug
