     main_component = Component
         # componentDidUpdate: ->
         # componentWillMount: ->
-        # getInitialState: ->
+        getInitialState: ->
+            date_from: 0
+            date_to: Date.now()
+
         render: ->
             group_entries = true # TODO: group by date?
 

                    # overflowX: 'hidden'
                    WebkitAppRegion: 'drag'
                ]
                for {active, delta, task, date} in final_entries
                    div
                        className: 'entry'
                        style: [

                        last_task = task
                    final_entries.push {active, task, date}


            # Calculating duration
            for e,i in final_entries
                next_entry = final_entries[i+1]
                if next_entry?
                    e.delta = next_entry.date - e.date
                else
                    e.delta = date_now - e.date

            first_date = final_entries[0].date
            min_date_to = Math.max first_date, @state.date_from
            max_date_from = Math.min date_now, @state.date_to

            f_min_date_from = new Date(first_date).toJSON().split('T')[0]
            f_max_date_from = new Date(max_date_from).toJSON().split('T')[0]
            f_min_date_to = new Date(min_date_to).toJSON().split('T')[0]
            f_max_date_to = new Date(date_now).toJSON().split('T')[0]

            div
                id: 'main_container'
