refactor users controller and views