You need to have the button in one frame block. To not have it appearing in other frames you need to make it invisible.