added active account view
fixed undefined constant as array index