hideButton on last page and filters working