added buttons to jump to first and last pages