updated controller for view account bug