update code for account detail page