dont count the pop-up pref for the button limit

Change-Id: I0d725e1cd077989026bd5880c141536b6e22b45e