added events to change images