Switched AccountManager to be created in main function and accessed with pointers so can change the UI later without affecting data