added pagination , default select the last file, spinner gif