Hotfix of potential bug

Parse error on older versions of PHP within client-dash.php from using an in-line function.
Function was moved out of add_action and called separately.