added pagination and file upload changes