moved the client actions to separate js file