write preview and play killing logic and UI