add playback function, code clean up
adjust UI elements