pulled accountsTemplate out into a proper view