nicer style
proper logic for play/pause