How to remove page break button based on condition?