Button and ImageButton should share same code.