when 1 page and last page hide button