moved out account related methods and objects into the main application
that now handles the global state of the application