update code for account detail