Refactored promise pattern and added sum on Accounts List