Add next/prev file buttons and functionality