added functionality for changing images when buttons were pressed