Added UI logic to play video