         @_last_history_state = local_url
         {set_url} = require('./history')
         set_url(@_url_in_project(local_url))
-        misc_page.analytics_pageview(window.location.pathname)
+        require('./misc_page').analytics_pageview(window.location.pathname)
 
     move_file_tab: (opts) =>
         {old_index, new_index, open_files_order} = defaults opts,

                        count  : if opts.paths.length > 3 then opts.paths.length

    download_file: (opts) =>
        {download_file, open_new_tab} = misc_page
        opts = defaults opts,
            path    : required
            log     : false

{webapp_client} = require('./webapp_client')
{project_tasks} = require('./project_tasks')
{types, defaults, required} = misc

{Actions, rtypes, computed, depends, project_redux_name, Table, redux}  = require('./smc-react')

