Add accounts functionality and add header to template