Added previous/next button events for windows