added code to refresh accounts list and clear the list