cherrypicked
jslinted the dashboardView