     "<p>{{#(name)}} - {{#(status)}} </p>"
 
 class ChatInputForm extends KDFormView
-  viewAppended: ->
-    @addSubView @input = new KDInputView
+  constructor: ->
+    super
+    @input = new KDInputView
       placeholder: "Click here to reply"
       name: "chatInput"
       cssClass: "fl"

      if status is "bind"
        channel.addOnlineUser presence
      else if status is "unbind"
        channel.removeOfflineUser presence    

    # When the channel's view receives chat input, parse the body
    # and broadcast it to corresponding channels.
    channel.view.on "ChatMessageSent", (messageBody) =>
      @parseMessage messageBody, channel
      @broadcastOwnMessage messageBody, channel 
      # Also broadcast to public channel
      if name isnt PUBLIC
        @broadcastOwnMessage messageBody, @channels[PUBLIC], channel

    # Delegates to the channel to handle received message
    @broadcaster.on channelName, (msg) ->

  ###
  parseMessage: (message, fromChannel) ->
    while match = TOPICREGEX.exec message
      toChannel = match[0]
      @broadcastOwnMessage message, toChannel, fromChannel

  ###
  # Broadcasts the message to channel toChannel. If fromChannel
