Tidyed up code in AccountsActivity