updated picture button

updated the picture button to be disabled at the proper times and fixed
a bug where action listeners were being added multiple times