this and the javascript should be moved to View/Dashboard/view.ctp, since it's not 'general'