need help to modify this push button code

No !
The number of times the button has been pressed is not relevant. buttonState simply tells the program whether a button is currently pressed or not. The state that I am talking about indicates which level of the menu you are in so that button presses can be interpreted and acted on appropriately . Button 1 will mean different things depending on the current state. To expand on my example, if you are at the top level of the menu and press button 2 this might take you to a menu allowing you to delete fingerprints. That might be state 3. You decide on the state numbers.