remove button when end reached