moved dashboard scripts to dashboard view