removing buttons that really are not visible