file array implemented; click to change file in viewer still not functional