worked on convertion of account types
moved code to header.js