Added replay button handler