Fixed issues with code.name -> code.id
Made auto-load preview when viewing peer code