updated code with Account list and detail working