             ''
 
         pager = FM.Pager({
+            currentPage: @state.currentPage
             handleClick: @handleClick
             totalItems: @state.messageCount
         })
 
-        messageNodes = @state.messages.map((message) => FM.Message({
-            key: message.mUid
-            subject: message.mSubject
-            sender: message.mSender
-            date: message.mDate
-            mailbox: @safeID
-        }))
-
         messageList = if @state.messages
+            messageNodes = @state.messages.map((message) => FM.Message({
+                key: message.mUid
+                subject: message.mSubject
+                sender: message.mSender
+                date: message.mDate
+                mailbox: @safeID
+            }))
             React.DOM.div(null,
                 React.DOM.table({className: "table table-striped table-hover"},
                     React.DOM.thead(null,

                cPassword: window.password
            }
            cmrMailbox: @props.key
        }, (data) =>
            @setState({
                messageCount: data
            })
        )

    handleClick: (page) ->
        @setState({

            }
            lmrMailbox: @props.key
            lmrPage: @state.currentPage
        }, (data) => @setState({
            messages: data
        }))

    componentDidMount: ->

