modify the controller signature and implementation to make users parameter available to the scope
remove unused parts of tm users: filtering, disable, create & edit are not yet supported
indentation
add userid in loggedUser variable
remove useless activeProfile variable