Fixed fail to run after system reset

Button setup was configuring the interrupt controller before setting up
GPIO pins. Just changed the order of the button setup process.