Currently the panel handler loops through every block and every button for every single panel. This commit moves that check to happen a single time at the beginning.
Currently the panel handler loops through every block and every button for every single panel. This commit moves that check to happen a single time at the beginning.