refactor user and make views revenues, spending, total_cashs